﻿using System;

namespace CodeFirstMVC3.Core.Validation
{
    public class ValidationMessage : IValidationMessage
    {
        public MessageType Type
        {
            get;
            set;
        }

        public string Message
        {
            get;
            set;
        }

        public string KeyName
        {
            get;
            set;
        }

        public ValidationMessage(MessageType type, string message, string fieldName = null)
        {
            Type = type;
            Message = message;
            KeyName = fieldName;
        }
    }
}